package com.tom.angel.pagemodel;

import java.util.List;
import java.util.Map;


public class TreeMenuPageModel {
	
	/**
	 * 菜单树的节点编号
	 */
	private int id;
	
	/**
	 * 节点名称
	 */
	private String text;
	
	/**
	 * 是否勾选状态
	 */
	private boolean checked = false;
	
	/**
	 * 其他参数
	 */
	private Map<String, Object> attributes;
	
	/**
	 * 子节点
	 */
	private List<TreeMenuPageModel> children;
	
	/**
	 * 是否展开
	 */
	private String state = "open";

	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public String getText() {
		return text;
	}

	public void setText(String text) {
		this.text = text;
	}

	public boolean isChecked() {
		return checked;
	}

	public void setChecked(boolean checked) {
		this.checked = checked;
	}

	public Map<String, Object> getAttributes() {
		return attributes;
	}

	public void setAttributes(Map<String, Object> attributes) {
		this.attributes = attributes;
	}

	public List<TreeMenuPageModel> getChildren() {
		return children;
	}

	public void setChildren(List<TreeMenuPageModel> children) {
		this.children = children;
	}

	public String getState() {
		return state;
	}

	public void setState(String state) {
		this.state = state;
	}
}
